/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * VentanaDeOperadorSAT.java
 *
 * Created on May 4, 2010, 4:13:36 PM
 */

package View;

import java.awt.Image;
import java.awt.Toolkit;

/**
 *
 * @author Scott
 */
public class VentanaDeOperadorSAT extends javax.swing.JFrame {

    /** Creates new form VentanaDeOperadorSAT */
    public VentanaDeOperadorSAT() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jP_Superior = new javax.swing.JPanel();
        jPanel1 = new View.panelDefondo("fondo.jpg");
        jButton_OrdenarServicioTaxi = new javax.swing.JButton();
        jButton_OrdenarServicioBus = new javax.swing.JButton();
        jButton_EliminarEmpresaRegistrada = new javax.swing.JButton();
        javax.swing.JButton jButton_ModificarEmpresaRegistrada = new javax.swing.JButton();
        jButton_RegistrarEmpresaNueva = new javax.swing.JButton();
        jButton_EliminarClienteRegistrado = new javax.swing.JButton();
        jButton_ModificarClienteRegistrado = new javax.swing.JButton();
        jButton_RegistrarUsuarioNuevo = new javax.swing.JButton();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jScrollPane2 = new javax.swing.JScrollPane();
        jTable2 = new javax.swing.JTable();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTable1 = new javax.swing.JTable();
        jScrollPane3 = new javax.swing.JScrollPane();
        jTable3 = new javax.swing.JTable();
        jP_Superior1 = new View.panelDefondo("fondo3.png");
        jB_RegisConductor = new javax.swing.JButton();
        jB_ModfiCoductor = new javax.swing.JButton();
        jB_ElimiConductor = new javax.swing.JButton();
        jLCerrarSesion = new javax.swing.JLabel();

        jP_Superior.setBackground(new java.awt.Color(102, 102, 102));

        javax.swing.GroupLayout jP_SuperiorLayout = new javax.swing.GroupLayout(jP_Superior);
        jP_Superior.setLayout(jP_SuperiorLayout);
        jP_SuperiorLayout.setHorizontalGroup(
            jP_SuperiorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 994, Short.MAX_VALUE)
        );
        jP_SuperiorLayout.setVerticalGroup(
            jP_SuperiorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 99, Short.MAX_VALUE)
        );

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Operador S.T.A");
        setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        setFocusTraversalPolicyProvider(true);
        setIconImage(getIconImage());

        jButton_OrdenarServicioTaxi.setFont(new java.awt.Font("Tahoma", 0, 14));
        jButton_OrdenarServicioTaxi.setText("Ordenar Servicio Taxi");
        jButton_OrdenarServicioTaxi.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton_OrdenarServicioTaxiActionPerformed(evt);
            }
        });

        jButton_OrdenarServicioBus.setFont(new java.awt.Font("Tahoma", 0, 14));
        jButton_OrdenarServicioBus.setText("Ordenar Servicio Bus");
        jButton_OrdenarServicioBus.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton_OrdenarServicioBusActionPerformed(evt);
            }
        });

        jButton_EliminarEmpresaRegistrada.setFont(new java.awt.Font("Tahoma", 0, 14));
        jButton_EliminarEmpresaRegistrada.setText("Eliminar Empresa Registrada");
        jButton_EliminarEmpresaRegistrada.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton_EliminarEmpresaRegistradaActionPerformed(evt);
            }
        });

        jButton_ModificarEmpresaRegistrada.setFont(new java.awt.Font("Tahoma", 0, 14));
        jButton_ModificarEmpresaRegistrada.setText("Modificar Empresa Registrada");
        jButton_ModificarEmpresaRegistrada.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton_ModificarEmpresaRegistradaActionPerformed(evt);
            }
        });

        jButton_RegistrarEmpresaNueva.setFont(new java.awt.Font("Tahoma", 0, 14));
        jButton_RegistrarEmpresaNueva.setText("Registrar Empresa Nueva");
        jButton_RegistrarEmpresaNueva.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton_RegistrarEmpresaNuevaActionPerformed(evt);
            }
        });

        jButton_EliminarClienteRegistrado.setFont(new java.awt.Font("Tahoma", 0, 14));
        jButton_EliminarClienteRegistrado.setText("Eliminar Cliente Registrado");
        jButton_EliminarClienteRegistrado.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton_EliminarClienteRegistradoActionPerformed(evt);
            }
        });

        jButton_ModificarClienteRegistrado.setFont(new java.awt.Font("Tahoma", 0, 14));
        jButton_ModificarClienteRegistrado.setText("Modificar Cliente Registrado");
        jButton_ModificarClienteRegistrado.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton_ModificarClienteRegistradoActionPerformed(evt);
            }
        });

        jButton_RegistrarUsuarioNuevo.setFont(new java.awt.Font("Tahoma", 0, 14));
        jButton_RegistrarUsuarioNuevo.setText("Registrar Cliente Nuevo");
        jButton_RegistrarUsuarioNuevo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton_RegistrarUsuarioNuevoActionPerformed(evt);
            }
        });

        jTable2.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jScrollPane2.setViewportView(jTable2);

        jTabbedPane1.addTab("Vehiculo Disponobles", jScrollPane2);

        jTable1.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jScrollPane1.setViewportView(jTable1);

        jTabbedPane1.addTab("Taxis Trabajando", jScrollPane1);

        jTable3.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jScrollPane3.setViewportView(jTable3);

        jTabbedPane1.addTab("Minibuses Trabajando", jScrollPane3);

        jP_Superior1.setBackground(new java.awt.Color(102, 102, 102));

        javax.swing.GroupLayout jP_Superior1Layout = new javax.swing.GroupLayout(jP_Superior1);
        jP_Superior1.setLayout(jP_Superior1Layout);
        jP_Superior1Layout.setHorizontalGroup(
            jP_Superior1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 757, Short.MAX_VALUE)
        );
        jP_Superior1Layout.setVerticalGroup(
            jP_Superior1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 104, Short.MAX_VALUE)
        );

        jB_RegisConductor.setFont(new java.awt.Font("Tahoma", 0, 14));
        jB_RegisConductor.setText("Registra Conductor");
        jB_RegisConductor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jB_RegisConductorActionPerformed(evt);
            }
        });

        jB_ModfiCoductor.setFont(new java.awt.Font("Tahoma", 0, 14));
        jB_ModfiCoductor.setText("Modifcar Conductor Registrado");
        jB_ModfiCoductor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jB_ModfiCoductorActionPerformed(evt);
            }
        });

        jB_ElimiConductor.setFont(new java.awt.Font("Tahoma", 0, 14));
        jB_ElimiConductor.setText("Eliminar Conductor Registrado");
        jB_ElimiConductor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jB_ElimiConductorActionPerformed(evt);
            }
        });

        jLCerrarSesion.setForeground(new java.awt.Color(255, 0, 0));
        jLCerrarSesion.setText("Cerrar Sesion");
        jLCerrarSesion.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jLCerrarSesionMouseClicked(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(jButton_EliminarEmpresaRegistrada, 0, 0, Short.MAX_VALUE)
                            .addComponent(jButton_RegistrarUsuarioNuevo, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButton_ModificarClienteRegistrado, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButton_EliminarClienteRegistrado, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButton_RegistrarEmpresaNueva, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButton_ModificarEmpresaRegistrada, javax.swing.GroupLayout.Alignment.LEADING, 0, 0, Short.MAX_VALUE)
                            .addComponent(jB_RegisConductor, 0, 0, Short.MAX_VALUE)
                            .addComponent(jB_ModfiCoductor, 0, 0, Short.MAX_VALUE)
                            .addComponent(jB_ElimiConductor, 0, 0, Short.MAX_VALUE))
                        .addComponent(jButton_OrdenarServicioTaxi, javax.swing.GroupLayout.PREFERRED_SIZE, 199, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jButton_OrdenarServicioBus, javax.swing.GroupLayout.DEFAULT_SIZE, 202, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 529, Short.MAX_VALUE)
                .addContainerGap())
            .addComponent(jP_Superior1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                .addContainerGap(657, Short.MAX_VALUE)
                .addComponent(jLCerrarSesion, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addComponent(jP_Superior1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(jButton_RegistrarUsuarioNuevo, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButton_ModificarClienteRegistrado, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButton_EliminarClienteRegistrado, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButton_RegistrarEmpresaNueva, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButton_ModificarEmpresaRegistrada, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButton_EliminarEmpresaRegistrada, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jB_RegisConductor, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jB_ModfiCoductor, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jB_ElimiConductor, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButton_OrdenarServicioTaxi, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jButton_OrdenarServicioBus, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 471, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jLCerrarSesion, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-773)/2, (screenSize.height-657)/2, 773, 657);
    }// </editor-fold>//GEN-END:initComponents

    private void jButton_RegistrarEmpresaNuevaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton_RegistrarEmpresaNuevaActionPerformed
        new VenRegisEmpre().setVisible(true);
}//GEN-LAST:event_jButton_RegistrarEmpresaNuevaActionPerformed

    private void jButton_EliminarClienteRegistradoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton_EliminarClienteRegistradoActionPerformed
      new VenElimiClien().setVisible(true);

}//GEN-LAST:event_jButton_EliminarClienteRegistradoActionPerformed

    private void jButton_ModificarClienteRegistradoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton_ModificarClienteRegistradoActionPerformed
       new VenModifiClien().setVisible(true);
}//GEN-LAST:event_jButton_ModificarClienteRegistradoActionPerformed

    private void jButton_RegistrarUsuarioNuevoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton_RegistrarUsuarioNuevoActionPerformed
     new VenReigsClien().setVisible(true);
}//GEN-LAST:event_jButton_RegistrarUsuarioNuevoActionPerformed

    private void jButton_EliminarEmpresaRegistradaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton_EliminarEmpresaRegistradaActionPerformed
         new VenElimEmpre().setVisible(true);
    }//GEN-LAST:event_jButton_EliminarEmpresaRegistradaActionPerformed

    private void jButton_ModificarEmpresaRegistradaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton_ModificarEmpresaRegistradaActionPerformed
         new VenModdifiEmpresa().setVisible(true);
    }//GEN-LAST:event_jButton_ModificarEmpresaRegistradaActionPerformed

    private void jB_RegisConductorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jB_RegisConductorActionPerformed
         new VenRegistroConduc().setVisible(true);
    }//GEN-LAST:event_jB_RegisConductorActionPerformed

    private void jB_ModfiCoductorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jB_ModfiCoductorActionPerformed
         new VenModifConduc().setVisible(true);
    }//GEN-LAST:event_jB_ModfiCoductorActionPerformed

    private void jB_ElimiConductorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jB_ElimiConductorActionPerformed
        new VenElimiConduc().setVisible(true);
    }//GEN-LAST:event_jB_ElimiConductorActionPerformed

    private void jButton_OrdenarServicioTaxiActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton_OrdenarServicioTaxiActionPerformed
        new VenOrdeSerTaxi().setVisible(true);
    }//GEN-LAST:event_jButton_OrdenarServicioTaxiActionPerformed

    private void jButton_OrdenarServicioBusActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton_OrdenarServicioBusActionPerformed
       new VenOrdeServBus().setVisible(true);
    }//GEN-LAST:event_jButton_OrdenarServicioBusActionPerformed

    private void jLCerrarSesionMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLCerrarSesionMouseClicked

        VentanaDeIncioDeSecion veniniciodesesin = new VentanaDeIncioDeSecion();
        veniniciodesesin.setVisible(true);
        this.dispose();
}//GEN-LAST:event_jLCerrarSesionMouseClicked

    /**
    * @param args the command line arguments
    */
  @Override
    public Image getIconImage() {
        Image retValue = Toolkit.getDefaultToolkit().
                getImage(ClassLoader.getSystemResource("View/taxis [1600x1200].png"));


        return retValue;
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jB_ElimiConductor;
    private javax.swing.JButton jB_ModfiCoductor;
    private javax.swing.JButton jB_RegisConductor;
    private javax.swing.JButton jButton_EliminarClienteRegistrado;
    private javax.swing.JButton jButton_EliminarEmpresaRegistrada;
    private javax.swing.JButton jButton_ModificarClienteRegistrado;
    private javax.swing.JButton jButton_OrdenarServicioBus;
    private javax.swing.JButton jButton_OrdenarServicioTaxi;
    private javax.swing.JButton jButton_RegistrarEmpresaNueva;
    private javax.swing.JButton jButton_RegistrarUsuarioNuevo;
    private javax.swing.JLabel jLCerrarSesion;
    private javax.swing.JPanel jP_Superior;
    private javax.swing.JPanel jP_Superior1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JTable jTable1;
    private javax.swing.JTable jTable2;
    private javax.swing.JTable jTable3;
    // End of variables declaration//GEN-END:variables

}
